#ifndef _HomeScene_h_
#define _HomeScene_h_

#include "Global.h"




#include "../../../model/proxy/ItemProxy.h"
#include "../item/Item.h"

class HomeScene
	: public State
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
	, public cocos2d::extension::CCNodeLoaderListener
{
	CCScrollView* mScroll;
    
    void _onNotification(CCObject* object);
    
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(HomeScene, create);
	HomeScene(void);
	~HomeScene(void);

	virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual bool onAssignCCBMemberVariable(CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader);

	bool init();
	void onEnter();
	void onExit();
	void refresh();
};

#endif